<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.rp.po.*" %>
<%@ include file="/rp/common/taglib.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>">
    
    <title>${ webpageTitle }</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	
	<script src="rp/scripts/boot.js" type="text/javascript"></script>
	
	<link rel="stylesheet" href="rp/css/index.css"/>
	
	<style type="text/css">
	   	body{
        	margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
    	}
    	#headImgDiv{
    		width:100px; height:100px; float: left; border: 1px solid #AAAAAA; padding: 2px;
    	}
    </style>
	
  </head>
  
  <body class="rpMain">
  	
  	<input type="hidden" id="path" value="<%= path %>"/>
  	<input type="hidden" id="basePath" value="<%= basePath %>"/>
  	<input type="hidden" id="userId" value="<rp:User property="id"/>"/>
  	
 	<div id="mainLayout" class="mini-layout" style="width:100%; height:100%;">
 	
 		<!-- 顶栏Banner -->
 		<jsp:include page="/rp/banner.jsp" />
 		
	    <!-- 页脚 -->
	    <jsp:include page="/rp/footer.jsp" />
	    
	    <!-- 侧边栏  -->
	    <div title="" region="west" width="250" minWidth="250" maxWidth="400" 
	    	showSplitIcon="false" showHeader="false" style="border-bottom:0px;border-top:0px;">
	        
	        <div id="userMiniCenter" class="mini-panel" showHeader="false"
	        	style="width:100%;height:117px;"
	        	bodyStyle=""
	        	borderStyle="border-left:0;border-top:0;border-right:0;border-bottom:1px solid #A7ABB0;" visible="false">
			   	<div id="headImgDiv">
			   		<img id="headImg" src="" alt="用户头像" style="width: 100%; height: 100%;" />
			   	</div>
			   	<div id="headImgRightDiv" 
			   		style="height: 100%; float: left; padding: 0px 0px 0px 5px;">
			   		<span><i class="fa fa-user fa-lg"></i> <rp:User property="realname"/></span><br/>
			   		<!-- <span><i class="fa fa-street-view fa-lg"></i> <rp:User property="roleName"/></span><br/> -->
			   		<span><i class="fa fa-inbox fa-lg"></i> <a id="weiduA" href="javascript:;" onclick="openMsgGrid()" style="color: #000;">消息<span id="weiduMsg"></span></a></span><br/>
			   		<span><i class="fa fa-book fa-lg"></i> <a href="javascript:;" onclick="openUserCenter()" style="color: #000;">个人中心</a></span>
			   	</div>
			   	<ul id="headImgContextMenu" class="mini-contextmenu">
					<li iconCls="fa fa-picture-o" onclick="openUploadHeadImg()">修改头像</li>
				</ul>
				<a id="userMiniCenterCloseBtn" href="javascript:;" 
					style="position: absolute; top: 0px; right: 0px; background-color: #D9534F; color: #FFF;
							border-left: 1px solid #555; border-bottom: 1px solid #555; display: none;
							padding-left: 5px; padding-right: 5px;"
					onclick="closeUserMiniCenter();"
					title="隐藏迷你用户中心">
					<i class="fa fa-times fa-2x"></i>
				</a>
			</div>
	        
	        <div class="mini-fit">
		        <div id="menuTabs" class="mini-tabs" activeIndex="0" 
		        	style="width: 100%; height: 100%;" borderStyle="border:0;"
		        	url="rp/system/baseData/menuMng/getAllMenus?show=1"
		        	bodyStyle="padding:0;"
		        	contextMenu="#menuTabItemMenu">
		        	
		        	<!-- <div title="功能菜单">
		        		
		        	</div>
		        	<div title="系统管理" iconCls="icon-sprocket-dark">
		        		<div id="sysMngMenu" class="mini-outlookmenu" 
		        			url="system_nav.txt" activeIndex="0"
		        			style="width:100%; height:100%;" autoCollapse="true"
		        			idField="id" parentField="pid" textField="text"
		        			onitemclick="sysMngMenuItemClick">
						    
						</div>
		        	</div> -->
		        </div>
	        </div>
	        <ul id="menuTabItemMenu" class="mini-contextmenu" onbeforeopen="onBeforeOpen2">
			    <li iconCls="fa fa-refresh fa-lg" onclick="reloadMenuTabsItem">刷新页签 (E)</li>      
			</ul>
	    </div>
	    
	    
	    <div title="center" region="center" style="border-bottom:0px;border-top:0px;">
	    	<div id="mainTabs" class="mini-tabs" style="width: 100%; height: 100%;" 
	    		borderStyle="border:0;" bodyStyle="padding:0;" 
	    		contextMenu="#mainTabsMenu" buttons="#tabsButtons"
	    		onbeforeactivechanged="mainTabsbeforeactivechanged">
	    		<!-- <div iconCls="" name="首页" title="首页" url="rp/home.jsp">
	    			
	    		</div> -->
	    	</div>
	    	
	    	<div id="tabsButtons">
	    		<input id="oftenMenuCombobox" class="mini-combobox" 
	    			emptyText="常用功能" 
	    			onitemclick="oftenMenuComboboxItemclick" 
	    			onbeforeshowpopup="oftenMenuComboboxBeforeShow"/>
	    	</div>
	    	
	    	<ul id="mainTabsMenu" class="mini-contextmenu" onbeforeopen="onBeforeOpen">  
	    		<li iconCls="fa fa-refresh fa-lg" onclick="refreshTab">刷新 (E)</li>
	    		<li iconCls="fa fa-share-square-o fa-lg" onclick="moveToNewWindow">移动到新窗口</li>
	    		<li class="separator"></li>
		        <li iconCls="fa fa-close fa-lg" onclick="closeCurrentTab">关闭标签页 (D)</li>                
			    <li onclick="closeOtherTabs">关闭其他标签页</li>
			    <li onclick="closeRightTabs">关闭右侧标签页</li>
			    <li onclick="closeAllTabs">关闭所有标签页</li>
			    <sec:authorize ifAllGranted="AUTH_SUPERADMIN">
			    	<li class="separator"></li>
			    	<li onclick="showURL">显示URL地址</li>
			    </sec:authorize>
		    </ul>
	    </div>
	    
	</div>
	
	<script src="rp/scripts/index.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(function(){
			
		});
		
		
	</script>
  </body>
</html>
